package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.CheckGroup;

import java.util.List;

public interface CheckGroupService {
    /**
     * @Author: JASON
     * @Date: 16:20 2021/1/4
     * @Parms [queryPageBean]
     * @ReturnType: com.itheima.health.entity.PageResult
     * @Description: 分页查询检查组
    */
    PageResult findByPage(QueryPageBean queryPageBean);

    /**
     * @Author: JASON
     * @Date: 16:45 2021/1/4
     * @Parms [checkGroup]
     * @ReturnType: void
     * @Description: 新增检查组
    */
    void add(CheckGroup checkGroup,Integer[] checkItemIds);

    /**
     * @Author: JASON
     * @Date: 17:06 2021/1/4
     * @Parms [id]
     * @ReturnType: com.itheima.health.pojo.CheckGroup
     * @Description: 根据id查询检查组
    */
    CheckGroup findById(Integer id);

    /**
     * @Author: JASON
     * @Date: 17:10 2021/1/4
     * @Parms [checkGroup]
     * @ReturnType: void
     * @Description: 根据id修改检查组
    */
    void edit(CheckGroup checkGroup,Integer[] checkitemIds);

    /**
     * @Author: JASON
     * @Date: 17:14 2021/1/4
     * @Parms [id]
     * @ReturnType: void
     * @Description: 根据id删除检查组
    */
    void delete(Integer id);

    
    /**
     * @Author: JASON 
     * @Date: 15:50 2021/1/5
     * @Parms [id]
     * @ReturnType: java.util.List<java.lang.Integer>
     * @Description: 根据groupid查询checkitemID
    */
    List<Integer> findCheckItemIdsByCheckGroupId(Integer id);

    /**
     * @Author: JASON
     * @Date: 9:27 2021/1/6
     * @Parms []
     * @ReturnType: java.util.List<com.itheima.health.pojo.CheckGroup>
     * @Description: 检查组查询所有
    */
    List<CheckGroup> findAll();

}
